Here is a sample script that uses the frameReady function to stay on the current frame until the frame labeled "menu" has loaded.